<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新疆维吾尔自治区博物馆网络文本分析平台</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container">
            <a class="navbar-brand" href="/">
                <i class="fas fa-museum"></i> 新疆博物馆文本分析平台
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="/">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/dashboard">分析仪表板</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container mt-5">
        <div class="row">
            <div class="col-12">
                <div class="text-center mb-5">
                    <h1 class="display-4">新疆维吾尔自治区博物馆</h1>
                    <h2 class="text-muted">网络文本智能分析平台</h2>
                    <p class="lead">基于AI技术的网络舆情分析与可视化展示</p>
                </div>
            </div>
        </div>

        <!-- 功能卡片 -->
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-chart-line fa-3x text-primary mb-3"></i>
                        <h5 class="card-title">情感趋势分析</h5>
                        <p class="card-text">实时监测网络文本情感变化，生成情感趋势图表</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-cloud-word fa-3x text-success mb-3"></i>
                        <h5 class="card-title">关键词云</h5>
                        <p class="card-text">智能提取高频关键词，可视化展示热点话题</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-filter fa-3x text-warning mb-3"></i>
                        <h5 class="card-title">高级筛选</h5>
                        <p class="card-text">按时间、来源、关键词进行多维度数据筛选</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- 快速入口 -->
        <div class="row mt-5">
            <div class="col-12 text-center">
                <a href="/dashboard" class="btn btn-primary btn-lg me-3">
                    <i class="fas fa-chart-bar"></i> 进入分析仪表板
                </a>
                <button class="btn btn-outline-primary btn-lg" onclick="generateQuickReport()">
                    <i class="fas fa-file-pdf"></i> 生成快速报告
                </button>
            </div>
        </div>

        <!-- 数据概览 -->
        <div class="row mt-5">
            <div class="col-12">
                <h3 class="mb-4">数据概览</h3>
                <div class="row" id="dataOverview">
                    <!-- 动态加载数据 -->
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-light mt-5 py-4">
        <div class="container text-center">
            <p class="text-muted mb-0">&copy; 2024 新疆维吾尔自治区博物馆网络文本分析平台</p>
        </div>
    </footer>

    <script src="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.6.7/axios.min.js"></script>
    <script src="{{ url_for('static', filename='js/index.js') }}"></script>
</body>
</html>
